From: Stephen Kitt Date: Tue, 16 Jul 2019 11:56:08 +0000 (+0100) Subject: Link with libatomic explicitly X-Git-Tag: archive/raspbian/3.6-1+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7f16c7634fc40b9d699b24aea06fc7299f9ee40c;p=lgogdownloader.git Link with libatomic explicitly Some architectures (mipsel...) don't include libatomic by default, and the build fails there. Since we're linking with --as-needed, we can safely add -latomic everywhere. Gbp-Pq: Name add-libatomic.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 54edb7d..9d0812d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,6 +100,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE ${Rhash_LIBRARIES} PRIVATE ${CMAKE_THREAD_LIBS_INIT} PRIVATE ${ZLIB_LIBRARIES} + PRIVATE -latomic ) if(LINK_LIBCRYPTO EQUAL 1)